<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
         .card {
            width: 300px;
            height: 450px;
            position: relative;
            margin-left: 100px;
            
        }
        
        .card img{
            width: 100%;
            position: absolute;
            transition: 0.5s;
        }
        
        .card:hover .bg
        {
            transform: perspective(600px) rotateX(45deg);
            box-shadow: 0 35px 35px -8px rgba(0, 0, 0, 0.8);
        }
        .bg{
            z-index: 1;
        }
        .hero{
            z-index: 2;
            bottom: 0;
            opacity: 0;
            
        }
        .card:hover .hero{
            opacity: 1;
            transform: perspective(500px) translate3d(0, -50px, 100px);
        }
        .title{
            z-index: 3;
            bottom: 10px;
        }
        .card:hover .title{

            transform: perspective(500px) translate3d(0, -25px, 100px);
        } 

    </style>
</head>
<body>
    <div class="card">
        <img src="./bg.png" class="bg" alt="">
        <img src="./hero.png" class="hero" alt="">
        <img src="./font.png" class="title" alt="">
    </div>
</body>
</html>